package com.yunji.aggregate.model.vo.container;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@NotNull
@AllArgsConstructor
public class FillCargoCellVO {

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品图片")
    private String albumPics;

    @ApiModelProperty("商品数量")
    private Integer productQuantity;

    @ApiModelProperty("商品上限")
    private Integer ceilingQuantity;

    @ApiModelProperty("缺货商品数量")
    private Integer stockOutQuantity;

    public Integer getStockOutQuantity() {
        return this.ceilingQuantity - this.productQuantity;
    }

}
